package com.sfh.controller.rsp;

import java.util.Date;
import java.util.List;

import com.sfh.service.model.NoteModel;

public class RspNote {

    long noteId;
    long userId;//"创建者ID
    long massId;//"社团ID
    
    String noteContent;//"内容
    String noteLable;//"标签"
    long noteReadiSize;//"阅读量"
    long noteMsgSize;//"评论量"
    long noteFabulousSize;//"点赞量"
    Date noteCreateTime;//"创建时间"
    int noteVip;//"特权查看 1:需要否则不需要"
    long noteConsumeWealth;
    List<String> images;
    
    RspUser user;
    
    public static RspNote creaNote(NoteModel model) {

    	RspNote note = new RspNote();
    	note.noteId = model.getId() ;
    	note.userId = model.getUserId();
    	note.noteContent = model.getContent();
    	note.noteLable = model.getLable();
    	note.noteReadiSize = model.getReadiSize();
    	note.noteMsgSize = model.getMsgSize();
    	note.noteFabulousSize = model.getFabulousSize();
      	note.noteCreateTime =model.getTime() ;
     	note.noteVip = model.getVip();
     	note.images =model.getExtImages() ;
     	note.user = RspUser.createRspUser(model.getExtUser());
     	note.noteConsumeWealth = model.getWealth();
    	return note;
    }
    
    public long getNoteId() {
		return noteId;
	}
}
